<h1><?=$this->translate->_('header_be_navi')?></h1>

<?if($this->count > 0):?>
	<br />
	<table summary="backend navigation" class="highMe" id="editableTable">
	<tr>
		<th width="10px"><?=$this->translate->_('navigation_table_suid')?></th>
		<th width="100px"><?=$this->translate->_('navigation_table_title')?></th>
		<th width="100px"><?=$this->translate->_('navigation_table_action')?></th>
		<th width="100px"><?=$this->translate->_('navigation_table_controller')?></th>
		<th width="100px"><?=$this->translate->_('navigation_table_role')?></th>
		<th width="100px"><?=$this->translate->_('navigation_table_route')?></th>
		<th width="40px"><?=$this->translate->_('navigation_table_langkey')?></th>
		<th></th>
	</tr>
	<?foreach($this->result AS $result):?>
		<tr id="<?=$result['uid']?>">
			<td style="text-align:center;" class="val_<?=$result['uid']?>" id="text,sort_id"><?=$result['sort_id']?></td>
			<td class="val_<?=$result['uid']?>" id="text,title"><?=$this->escape($result['title'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,action"><?=$this->escape($result['action'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,controller"><?=$this->escape($result['controller'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,role"><?=$this->escape($result['role'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,route"><?=$this->escape($result['route'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,lang_key"><?=$this->escape($result['lang_key'])?></td>
			<td>
			
				<a href="javascript:editRow(<?=$result['uid']?>,'<?=$this->url(array('module' => 'backend', 'controller' => 'navigation', 'action' => 'requestBackend'), 'default', true)?>');" id="editLink_<?=$result['uid']?>">
					<img src="<?=$this->baseUrl()?>/static/gfx/icons/pencil.png" />
				</a> 
				
				<?if($result['hidden'] == 1):?>
					<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'navigation', 'action' => 'mode', 'type' => 'be', 'mode' => 'unhide', 'uid' => $result['uid']), 'default', true)?>">
						<img src="<?=$this->baseUrl()?>/static/gfx/icons/invisible.gif" alt="hidden" title="is hidden" />
					</a>
				<?else:?>
					<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'navigation', 'action' => 'mode', 'type' => 'be', 'mode' => 'hide', 'uid' => $result['uid']), 'default', true)?>">
						<img src="<?=$this->baseUrl()?>/static/gfx/icons/eye.png" alt="visible" title="is visible" />
					</a>
				<?endif;?>
				
				<?if($result['locked'] == 1):?>
					<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'navigation', 'action' => 'mode', 'type' => 'be', 'mode' => 'unlock', 'uid' => $result['uid']), 'default', true)?>">
						<img src="<?=$this->baseUrl()?>/static/gfx/icons/lock.png" alt="locked" title="locked" />
					</a>
				<?else:?>
					<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'navigation', 'action' => 'mode', 'type' => 'be', 'mode' => 'lock', 'uid' => $result['uid']), 'default', true)?>">
						<img src="<?=$this->baseUrl()?>/static/gfx/icons/lock_open.png" alt="unlocked" title="unlocked" />
					</a>
				<?endif;?>
				
				<a href="javascript:delRow(<?=$result['uid']?>,'<?=$this->url(array('module' => 'backend', 'controller' => 'navigation', 'action' => 'deleteBackend'), 'default', true)?>');">
					<img src="<?=$this->baseUrl()?>/static/gfx/icons/bin.png" />
				</a>
				
			</td>
		</tr>
	<?endforeach;?>
	</table>
	<br />
<?else:?>
	<p class="notice_bad"><?=$this->translate->_('navigation_backend_empty')?></p>
<?endif;?>

<h2><?=$this->translate->_('navigation_backend_add')?></h2>

<?=$this->form?>